<?php
namespace app\backstage\validate;
use think\Validate;

class Faq extends Validate
{
    protected $rule = [
        'content'        => 'require',
        'from_id'        => 'require|gt:0',
    ];

    protected $message  =   [
        'from_id.require'           => '意见反馈记录ID不能为空',
        'from_id.gt'                => '意见反馈记录ID不能为空',
        'content.require'           => '回复内容不能为空',
    ];

    protected $scene = [
        'reply'       => ['from_id','content'],
    ];
}